#include <stdio.h>
#include <stdlib.h>
 


	double power(double x, int n)
	{
	double xk;
	if (n==0)
	{
			return 1;}
	else {
		if (n & 1 == 1)
		{
			return power (x, n-1) * x;
				}
			else {
			  xk = power (x, n>>1);
			  return xk*xk; ;
				}
		}
	}	
int main()
{
	double x;
	int n;
	 scanf("%lf %d", &x, &n);
printf("%lf\n", power( x, n));
system("pause");
}
